package com.qmq.app.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Builder
@TableName("qmq_earnings")
@NoArgsConstructor
@AllArgsConstructor
public class EarningsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty("主键ID")
    @TableField("id")
    private Long id;

    @ApiModelProperty("产品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("产品价格")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty("产品收益")
    @TableField("earnings")
    private BigDecimal earnings;
}
